home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / Headers / BST.h < prev    next >
Text File  |  1999-07-13  |  300b  |  30 lines

  1.  
  2. #pragma once
  3.  
  4.  
  5. class BST {
  6.  
  7.     friend class BST;
  8.     
  9.     protected:
  10.         BST*                        mLeft;
  11.         BST*                        mRight;
  12.         BST*                        mParent;
  13.         
  14.         long                        mKey;
  15.         
  16.     public:
  17.                                     BST();
  18.         virtual                        ~BST();
  19.  
  20.  
  21.         void                        Detach();
  22.         
  23.         BST*                        Fetch( long inKey );
  24.         
  25.         void                        Insert( BST* inNode );
  26.         
  27. };
  28.  
  29.  
  30.